package com.briup.app04.dao;

import com.briup.app04.bean.Test;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface TestMapper {
    @Select("select * from cms_category")
    List<Test>selectAll();
    @Insert("insert into cms_category values(null,#{name},#{introduce},#{nu},#{parent_id})")
    void insert(Test cms_category);
    @Update("update cms_category set name=#{name},introduce=#{introduce},nu=#{nu},parent_id=#{parent_id} where id=#{id}")
    void update(Test  cms_category);
    @Delete("delete from cms_category where id=#{id}")
    void delete(Long id);

}
